/**
 * the base business exception
 * @author thomas.kang@hrx.ai
 */
class BusinessError extends Error {
  /**
   * the constructor of this class
   * @param {Integer} code
   * @param {String} message
   * @param {Array} errorItems
   */
  constructor(code, message, errorItems) {
    super(message);
    this.errorCode = code;
    this.errorMessage = message;
    this.errorItems = errorItems;
  }
}

module.exports = BusinessError;
